#include "head.h"

client_t* init_clients(int num){
	client_t* clients = (client_t*)calloc(1,sizeof(client_t));

	if(clients == NULL){
		fprintf(stderr,"client calloc fail \n");
		exit(1);
	}
	clients->desc = (desc_t*)calloc(num,sizeof(desc_t));
	if(clients->desc == NULL){
		fprintf(stderr,"clients->desc calloc fail \n");
		exit(1);
	}
	clients->index = 0;
	return clients;
}
